/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {
    mysql:{
      client:{
        host:"localhost",
        port:"3306",
        user:"root",
        password:"123456",
        database:"db_login"
      }
    },
    security:{
      csrf:false
    },
    // middleware:["auth"],
    session:{
      renew:false,
      key: 'EGG_SESS',
      maxAge: 24 * 3600 * 1000
    }
  };

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1644461667675_1795';

  return {
    ...config
  };
};
